package knh;

public class Item {
	//private
	private String id;
	private String name;
	private int icon;
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public int getIcon() {
		return icon;
	}
	public void setIcon(int icon) {
		this.icon = icon;
	}
	public Item(){
		this("","",0);
	}
	public Item(String id,String name){
		this(id,name,0);
	}
	public Item(String id,String name,int icon){
		this.id = id;
		this.name = name;
		this.icon = icon;
	}
	public boolean CompareToID(String id){
		if(this.id.compareTo(id)==0) return true;
		else return false;
	}
}
